from django.contrib import admin
from django_book.models import Book
from django_book.models import Author

class BookAdmin(admin.ModelAdmin):
    list_display = ["name",]

class AuthorAdmin(admin.ModelAdmin):
    list_display = ["name",]

admin.site.register(Book, BookAdmin)
admin.site.register(Author, AuthorAdmin)
